package ipdesk.model.analysis.dao;



import ipdesk.model.analysis.bean.AnalysisBrandBean;

import java.util.List;
import java.util.Map;

import com.ibatis.dao.client.DaoManager;
import com.opensymphony.xwork2.ActionContext;

import ecg.dao.DaoService;

public class AnalysisBrandDao {
	
	private static AnalysisBrandDao singleton;
		
	protected AnalysisBrandDao(){}
	
	public static AnalysisBrandDao getInstance()
	{
		if(singleton == null)
		{
			singleton = new AnalysisBrandDao();
		}
		
		return singleton;
	}
	
	private DaoManager	manager	= DaoService.getInstance();
	private IAnalysisBrand analysisBrand 	= (IAnalysisBrand)manager.getDao(IAnalysisBrand.class, "ip_desk");
	
	ActionContext context = ActionContext.getContext();
	Map<String, String> session = (Map<String, String>)context.getSession();
	

	
	public List<AnalysisBrandBean> getAnalysisBrandList(AnalysisBrandBean analysisBrandBean) throws Exception{
		
		List<AnalysisBrandBean> analysisBrandList = analysisBrand.getAnalysisBrandList(analysisBrandBean);
		
		return analysisBrandList;
	}

}
